package com.ims.core.enums;

/**
 * 消息推送方式
 * 0    邮件
 * 1    站内信
 * 2    短信
 * @author IMS
 */
public enum MsgChannel {
    EMAIL(0, "邮件"),
    INTERNAL_MESSAGE(1, "站内信"),
    SMS(2, "短信");

    private final int code;
    private final String name;

    MsgChannel(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}